<div class="row">
	<div class="col-xs-12">
		<?php //$form=$this->beginWidget('CActiveForm'); ?>
			<?php
			$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
				'id'=>'horizontalForm',
				'type'=>'horizontal',
			)); ?>
			<div class="form-group">
				<?php echo $form->labelEx($model, 'name',array('class'=>'col-sm-3 control-label no-padding-right')); ?>
				<div class="col-sm-9">
					<?php echo $form->textField($model, 'name', array('maxlength'=>255, 'class'=>'text-field')); ?><?php echo $form->error($model, 'name'); ?>
				</div>
				<span class="help-inline col-xs-12 col-sm-7">
					<span class="right">
						
						<?php echo Rights::t('core', 'Do not change the name unless you know what you are doing.'); ?>
					</span>
				</span>
				
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<?php echo $form->labelEx($model, 'description',array('class'=>'col-sm-3 control-label no-padding-right')); ?>
				<div class="col-sm-9">
					<?php echo $form->textField($model, 'description', array('maxlength'=>255, 'class'=>'text-field')); ?><?php echo $form->error($model, 'description'); ?>
				</div>
				
				<span class="help-inline col-xs-12 col-sm-7">
					<span class="right">
						
						<?php echo Rights::t('core', 'A descriptive name for this item.'); ?>
					</span>
				</span>
			</div>
			<div class="space-4"></div>
			<?php if( Rights::module()->enableBizRule===true ): ?>

				<div class="form-group">
					<?php echo $form->labelEx($model, 'bizRule',array('class'=>'col-sm-3 control-label no-padding-right')); ?>
					<div class="col-sm-9"><?php echo $form->textField($model, 'bizRule', array('maxlength'=>255, 'class'=>'text-field')); ?><?php echo $form->error($model, 'bizRule'); ?></div>
					<span class="help-inline col-xs-12 col-sm-7">
						<span class="right">
							
							<?php echo Rights::t('core', 'Code that will be executed when performing access checking.'); ?>
						</span>
					</span>
					
				</div>

			<?php endif; ?>
			<div class="space-4"></div>
			<?php if( Rights::module()->enableBizRule===true && Rights::module()->enableBizRuleData ): ?>

				<div class="form-group">
					<?php echo $form->labelEx($model, 'data',array('class'=>'col-sm-3 control-label no-padding-right')); ?>
					<div class="col-sm-9"><?php echo $form->textField($model, 'data', array('maxlength'=>255, 'class'=>'text-field')); ?><?php echo $form->error($model, 'data'); ?></div>
					
					
					<span class="help-inline col-xs-12 col-sm-7">
						<span class="right">
							
							<?php echo Rights::t('core', 'Additional data available when executing the business rule.'); ?>
						</span>
					</span>
				</div>

			<?php endif; ?>
			<div class="space-4"></div>
			
				<?php //echo CHtml::submitButton(Rights::t('core', 'Save')); ?> <?php //echo CHtml::link(Rights::t('core', 'Cancel'), Yii::app()->user->rightsReturnUrl); ?>

		
			<div class="clearfix form-actions">
				<div class="col-md-offset-3 col-md-9">
					<?php echo CHtml::submitButton(Rights::t('core', 'Save'),array('class'=>'btn btn-info')); ?>

					&nbsp; &nbsp; &nbsp;
					<?php echo CHtml::link(Rights::t('core', 'Cancel'),Yii::app()->user->rightsReturnUrl,array('class'=>'btn btn-info')); ?>
				</div>
			</div>
		<?php $this->endWidget(); ?>
			
	<div><!-- /.col -->
</div>